package com.hxzy.bean;

public class User {
    private Integer id;
    private String nickName;
    private String account;
    private String loginPassword;
    private int state =1;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nickName='" + nickName + '\'' +
                ", account='" + account + '\'' +
                ", loginPassword='" + loginPassword + '\'' +
                ", state=" + state +
                '}';
    }

    public User() {
    }

    public User(Integer id, String nickName, String account, String loginPassword, int state) {
        this.id = id;
        this.nickName = nickName;
        this.account = account;
        this.loginPassword = loginPassword;
        this.state = state;
    }
}
